package com.example.gokuplayalong.bases.beans;

import androidx.fragment.app.FragmentManager;

import com.example.gokuplayalong.bases.network.NetWork;

import java.util.ArrayList;
import java.util.List;

public class AppParams {

    public String mediaDir = "";//内部 无需权限
    public String mobRid = "";
    public String apkName = "gokuplayalong.apk";
    private static AppParams INSTANCE = null;
    public final String base = "http://www.cowhal.tech";
    //    public final String baseIpPort = base + ":8010";
    public final String baseIpPort = "http://192.168.0.102:8010";
    //    public final String uploadIpPort = base + ":8088";
    public final String uploadIpPort = "http://192.168.0.102:8088";
    public int vipTest = 1;
//    public int vipTest = 0;

    public final String argreeUrl = base + "/gokuplayalong/pages/agree.html";
    public final String policyUrl = base + "/gokuplayalong/pages/policy.html";
    public final String protocolUrl = base + "/gokuplayalong/pages/protocol.html";
    public final String thirdSdklUrl = base + "/gokuplayalong/pages/thirdSdk.html";
    public final String rechargeProtocollUrl = base + "/gokuplayalong/pages/rechargeProtocol.html";
    public final String logoutProtocollUrl = base + "/gokuplayalong/pages/logoutProtocol.html";


    public final String baseUrl = baseIpPort + "/public/client";
    public final String uploadMediaLocationServer = uploadIpPort + "/gokuplayalong/media";
    public final String uploadMediaLocationServerUrl = baseUrl + "/uploadImage";
    public int appWidth = 0;
    public int appHeight = 0;

    public long deshakLast = 0;
    public double percentage = 0.1;//抽成比例
    public List<Beans> appLocalUsers = new ArrayList<>();
    public Beans appLocation = new Beans();
    public Beans appCurrentUser = new Beans();
    public Beans appFinishInfo = new Beans();
    public Beans appRunParams = new Beans();
    public List<String> fragments = new ArrayList<>();
    public int currentFragment = -1;
    public FragmentManager sysfragmentmanager = null;


    public static AppParams getInstance() {
        if (INSTANCE == null) {
            INSTANCE = new AppParams();
        }
        return INSTANCE;
    }

    public static NetWork getNewNetWork() {
        return new NetWork();
    }

}
